package com.gxa.insurance.service;

import com.gxa.insurance.exception.BusinessException;

import com.gxa.insurance.pojo.Driver;
import com.gxa.insurance.pojo.DriverComments;


import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author shen gang
 * @date 2022/6/7
 */
public interface DriverCommentsService {

    List<DriverComments> selectAll();

    List<DriverComments> selectLikeName(String name, String orderNumber) throws BusinessException;
    Map<String,Object> selectByPage(Integer page, Integer size) throws Exception;
    Integer delete(Integer id) throws BusinessException;
//    Integer add(DriverComments driverComments);
    DriverComments selectComments(Integer id) throws BusinessException;


    List<DriverComments> selectByTime(Map map) throws Exception;

    /**
     * 获取司机所有的评价详情
     * @param name
     * @return
     */
    List<DriverComments> getCommentsList(String name);
//    List<DriverComments> selectByTime(Date from,Date to);



}
